const auth=require('../controller/user.js');
const router=require('koa-router')();

router.get('/user/:id',auth.getUserInfo);
router.post('/user',auth.postUserAuth);
module.exports=router;//把router暴露出去